package com.dc.business.datacollectbusiness.mapper;

import com.dc.business.datacollectbusiness.entity.Collector;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CollectorMapper {
    public List<Collector> selectAllCollector(@Param("startIndex") int startIndex, @Param("pageSize") int pageSize);
    public Collector selectCollectorByCollectorNumber(String collectNumber);
    public Collector selectCollectorByCollectorId(Integer collectorId);
    public Collector selectCollectorByCollectorName(String collectorName);
    public void insertCollector(Collector collector);
    public void updateCollector(Collector collector);
    public void deleteCollectorByCollectorId(Integer collectorId);


    public int getAllCollectorsum();

}
